home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / ProtocolsP.h.z / ProtocolsP.h
C/C++ Source or Header  |  2002-10-15  |  2KB  |  85 lines

  1. /* 
  2.  *  @OSF_COPYRIGHT@
  3.  *  COPYRIGHT NOTICE
  4.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  5.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  6.  *  the full copyright text.
  7. */ 
  8. /* 
  9.  * HISTORY
  10. */ 
  11. /* $XConsortium: ProtocolsP.h /main/10 1995/07/13 17:42:13 drk $ */
  12. /* (c) Copyright 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  13. #ifndef _XmProtocolsP_h
  14. #define _XmProtocolsP_h
  15.  
  16. #include <Xm/Protocols.h>
  17. #include <Xm/ExtObjectP.h>
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. typedef struct _XmProtocolClassPart {
  23.     XtPointer    extension;
  24.     
  25. #ifdef _SGIMOTIF
  26.     XtPointer    _SG_vendorExtension;
  27. #endif
  28.  
  29. } XmProtocolClassPart;
  30.  
  31. typedef struct _XmProtocolClassRec {
  32.     ObjectClassPart    object_class;
  33.     XmExtClassPart    ext_class;
  34.     XmProtocolClassPart    protocol_class;
  35. } XmProtocolClassRec, *XmProtocolObjectClass;
  36.  
  37. typedef struct _XmProtocolPart {
  38.     XtCallbackRec    pre_hook, post_hook;
  39.     XtCallbackList    callbacks;
  40.     Atom        atom;
  41.     Boolean        active;
  42.     
  43. #ifdef _SGIMOTIF
  44.     XtPointer    _SG_vendorExtension;
  45. #endif
  46.  
  47. } XmProtocolPart, *XmProtocolPartPtr;
  48.  
  49. typedef struct _XmProtocolRec {
  50.     ObjectPart            object;
  51.     XmExtPart            ext;
  52.     XmProtocolPart        protocol;
  53. } XmProtocolRec, *XmProtocol, **XmProtocolList;
  54.  
  55. #ifndef XmIsProtocol
  56. #define XmIsProtocol(w)    XtIsSubclass(w, xmProtocolObjectClass)
  57. #endif /* XmIsProtocol */
  58.  
  59. /* Class record constants */
  60.  
  61. externalref XmProtocolClassRec     xmProtocolClassRec;
  62. externalref WidgetClass xmProtocolObjectClass;
  63.  
  64. typedef struct _XmProtocolMgrRec{
  65.     Atom        property;
  66.     XmProtocolList     protocols;
  67.     Cardinal        num_protocols;
  68.     Cardinal        max_protocols;
  69. }XmProtocolMgrRec, *XmProtocolMgr, **XmProtocolMgrList;
  70.  
  71.  
  72. typedef struct _XmAllProtocolsMgrRec{
  73.   XmProtocolMgrList    protocol_mgrs;
  74.   Cardinal        num_protocol_mgrs;
  75.   Cardinal        max_protocol_mgrs;
  76.   Widget        shell;
  77. }XmAllProtocolsMgrRec, *XmAllProtocolsMgr;
  78.     
  79.  
  80. #ifdef __cplusplus
  81. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  82. #endif
  83.  
  84. #endif /* _XmProtocolsP_h */
  85.